package com.hx.voice.recognition.common.vo;

import java.util.ArrayList;
import java.util.List;

/**
 * @descripe：
 * @company：南京华讯方舟通讯设备有限公司
 * @author：zhoujinbing
 * @time：2019/6/19 10:23
 * @version：V1.0
 */
public class TreeNode {

    protected int id;

    protected int parentId;

    List<TreeNode> children = new ArrayList<>();

    public List<TreeNode> getChildren()
    {
        return children;
    }

    public void setChildren(List<TreeNode> children)
    {
        this.children = children;
    }

    public int getId()
    {
        return  id;
    }

    public void setId(int id)
    {
        this.id = id;
    }

    public int getParentId()
    {
        return parentId;
    }

    public void setParentId(int parentId)
    {
        this.parentId = parentId;
    }

    public void add(TreeNode node)
    {
        children.add(node);
    }
}